package com.xinyi.httpdemo.model;

import okhttp3.Request;

/**
 * @author 杨耿雷
 * @date 2023/4/1
 * @description 请求配置数据
 */
public class RequestConfigData {

    /**
     * 请求对象
     */
    private Request request;

    /** 请求方式*/
    private HttpMethod method;

    /**
     * 请求参数
     */
    private HttpParams params;

    /**
     * 请求头
     */
    private HttpHeaders headers;

    /**
     * 请求标记
     */
    private int flag;

    /**
     * 请求地址
     */
    private String path;

    /**
     * 请求延迟
     */
    private long delayMillis;

    public Request getRequest() {
        return request;
    }

    public void setRequest(Request request) {
        this.request = request;
    }

    public HttpMethod getMethod() {
        return method;
    }

    public void setMethod(HttpMethod method) {
        this.method = method;
    }

    public HttpParams getParams() {
        return params;
    }

    public void setParams(HttpParams params) {
        this.params = params;
    }

    public HttpHeaders getHeaders() {
        return headers;
    }

    public void setHeaders(HttpHeaders headers) {
        this.headers = headers;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getDelayMillis() {
        return delayMillis;
    }

    public void setDelayMillis(long delayMillis) {
        this.delayMillis = delayMillis;
    }
}
